#include "stm32f10x.h"                  // Device header
#include "delay.h"
#include "OLED.h"
#include "AD.h"

int main(void)
{
	OLED_Init();
	AD_Init();
	
	OLED_ShowString(1,1,"AD0:");
	OLED_ShowString(2,1,"AD1:");
	OLED_ShowString(3,1,"AD2:");
	OLED_ShowString(4,1,"AD3:");
	
	while(1)
	{
		OLED_ShowNum(1,5,AD_Value[0]*0.0008058,4);
		OLED_ShowNum(2,5,AD_Value[1]*0.0008058,4);
		OLED_ShowNum(3,5,AD_Value[2]*0.0008058,4);
		OLED_ShowNum(4,5,AD_Value[3]*0.0008058,4);
		
		Delay_ms(100);
	}
}	
